package com.tycoin;

/**
 * 错误代码类
 *
 */
public class ErrorCode {

    public static final int SUCCESS = 0;// 成功

    
    public static final int USER_GET_USERID_ERROR = 100001;// 账号获取失败,请返回首页重试!
    public static final int USER_GET_USERTOKEN_ERROR = 100002;// UserToken获取失败,请返回首页重试!

    public static final int CONTENT_NOT_ORDER = 200001;// 内容未订购,请订购后观看!
    public static final int NEED_REBOOT = 200002;// 请重启机顶盒!

    public static final int ORDER_ERROR = 200011;// 订购失败,请重新订购!
    public static final int ORDER_ERROR_BALANCE = 200012;// 订购失败,账户余额不足!
    public static final int ORDER_ERROR_ORDERED = 200013;// 已订购!

    public static final int ORDER_ERROR_PRODUCT_NOT_FOUND = 200014;// 订购失败,产品可能已被下架!

    public static final int UNSUBSCRIBE_ERROR = 200021;// 退订失败,请返回重试!
    public static final int UNSUBSCRIBE_ERROR_NOT_ORDER = 200022;// 退订失败,未订购该产品!
    public static final int UNSUBSCRIBE_ERROR_TIME_UP = 200023;// 订购未满30天，故无法退订!

    public static final int AUTH_SERVICE_ERROR = 200031;// 鉴权服务异常，请稍后再试!
    public static final int ORDER_SERVICE_ERROR = 200032;// 订购服务异常，请稍后再试!

    public static final int CONTENT_NOT_FOUND = 300001;// 内容可能已被下架,请返回选择其他内容!
    public static final int CONTENT_ERROR = 300002;// 内容信息错误,请返回重试!
    public static final int CATEGORY_NOT_FOUND = 300003;// 栏目可能已被下架,请返回选择其他栏目!
    public static final int CATEGORY_ERROR = 300004;// 栏目信息错误,请返回重试!

    public static final int SYSTEM_PAGE_NOT_FOUND = 999998;// 页面未找到,请返回重试!
    public static final int SYSTEM_ERROR = 999999;// 系统异常,请返回重试!

}
